package com.tianzmp.ttq.admin.service.assemble;

import com.tianzmp.ttq.admin.controller.reqDto.UserInfoSaveDTO;
import com.tianzmp.ttq.admin.entity.UserInfoAttach;
import com.tianzmp.ttq.admin.util.MapperUtils;
import org.springframework.stereotype.Component;

/**
 * @author zhumengping
 */
@Component
public class UserInfoAttachAssemble {


    public UserInfoAttach conversionDtoToBean(Long userId, UserInfoSaveDTO dto){
        UserInfoAttach map = MapperUtils.map(UserInfoAttach.class, dto);
        map.setUserId(userId);
        return map;

    }
}
